<template>
	<view class="loading_page" v-show="loadingShow">
		<u-loading-page loadingText="加载中..."  loading-mode="spinner" :loading="loadingShow"></u-loading-page>
	</view>
</template>

<script>
export default {
  name: "yuguLoading",
  data() {
	return {
		
	};
  },
  computed: {
  		//计算属性判断vuex中的显示状态
  		loadingShow() {
  			return this.$store.state.requestLoading;
  		}
   }
};
</script>

<style lang="scss">
.loading_page{
	position: fixed;
	z-index: 99999;
	margin-bottom: 20rpx;
}
</style>
